//
//  UITextField+Chain.h
//  ditelMaintain
//
//  Created by 葛悦彣 on 2023/3/2.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UITextField (Chain)

/// 新对象
+ (instancetype (^)(void))newTextField;


///添加文本
- (UITextField * (^)(NSString * text))addText;
///添加字体
- (UITextField * (^)(UIFont * font))addFont;
///添加颜色
- (UITextField * (^)(UIColor * color))addTextColor;
///添加默认备注
- (UITextField * (^)(NSString * placeholder))addPlaceholder;

/// 添加背景颜色
- (UITextField * (^)(UIColor * color))addbackgroundColor;


@end

NS_ASSUME_NONNULL_END
